package shayu.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import shayu.member.entity.MemberEntity;
import shayu.member.exeception.PhoneExistException;
import shayu.member.exeception.UsernameExistException;
import shayu.member.vo.MemberLoginVo;
import shayu.member.vo.MemberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author xiaoshayu
 * @email xiaoshayu@qq.copm
 * @date 2023-05-03 23:02:20
 */
public interface    MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String username) throws UsernameExistException ;

    MemberEntity login(MemberLoginVo vo);
}

